<?php
$ActivityId = intval($_REQUEST['ActivityId']);
$ActivityName= $_REQUEST['ActivityName'];
$Category = $_REQUEST['Category'];
include 'conn.php';

$sql = "UPDATE activity SET ActivityName='$ActivityName',Category='$Category' WHERE ActivityId='$ActivityId'";
$result = @mysql_query($sql);
if ($result)
{
	echo json_encode(array('success'=>true));
	} else {
	echo json_encode(array('msg'=>'Some errors occured.'));
}
?>